package cn.cheneyjoo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "cheneyjoo", type = "products")
public class Products implements Serializable {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private int id;
    /**
     * 产品名称
     */
    private String name;
    /**
     * 产品价格
     */
    private Double price;
    /**
     * 产品状态
     */
    private String flag;
    /**
     * 产品描述
     */
    private String goodsDesc;
    /**
     * 产品图片
     */
    private String images;
    /**
     * 产品库存
     */
    private int goodsStock;
    /**
     * 产品类型
     */
    private String goodsType;
}
